start coding Newton Pendulum