Newton's 2nd law of motion in a horizontal and vertical line