Controllability and Observability of Inverted Pendulum on Cart