Add pendulum on a cart example