Adding function and tests for the simple pendulum