example of finished Homework #2