Gravitational acceleration and pendulum motion