A pendulum was kept horizontal and released. Find the acceleration of the pendulum when it makes an angle θ with the vertical.