chapter 7 & exercise 6