working on chapter 6
Chapter 6, exercise 2
refactored chap6, exercises 1-2
chap 6, exercise 3