Added handout-5 example

The handout-5 example was improved from the version made in class to
include stupid-proof user input and a couple of other features.