Chapter 4 code
Merge pull request #3 from Lbuell/ch4

Chapter 4 code