Setting up system of differential Equations and solver