Projectile motion and pendulums