Study and operation of Inverted Pendulum System