chapter 10 exercise 7 and 8