Vertical motion and projectile motion