working on chapter 8
ch8ex1
ch8ex2