State variables : Pendulum problem