Converted controlled_integrator2 to ipython nb