Control and Stabilization of Soft Inverted Pendulum on a Cart