While measuring the acceleration due to gravity by a simple pendulum