Updated controlled integrator 2 (based off book) example.