Factors affecting period of a simple pendulum