Dynamics of a Moving Cart-Mounted Pendulum