Study and Operation of Inverted Pendulum System