Added Euler integration as an option for demonstration.