Update code sample for chapter 3.
Merge pull request #107 from jbcrail/update-ch03-sample

Update code sample for chapter 3.