First generic integrator implementation (part 1)