ch5 code
Merge pull request #5 from Lbuell/chapter5

ch5 code