Solve ODE