added model for calculating time period of pendulum