Working implementing functions that can be solved EC and RK4-style