working on page 163 of the chapter 9