added rudimentary version of integrator