working on Chapter 6 section 6.2