Increasing and decreasing function 1