ch. 10 exercise 6 fixed