Visualization of an Inverted Pendulum Model