The implementation of double pendulum system