implemented the ode system solution via odeint