Spring and Pendulum Motion