added runge-kutta and pendulum functions