Updated solver to use object oriented ode.