chapter 9 exercise doing number 6