modified euler_25 so that is returns the correct solution