While measuring acceleration due to gravity by a simple pendulum