ch5 code
Merge pull request #4 from Lbuell/chapter5

ch5 code