debugged fixedPoint (problem 8-1)