adding example from step 12, chapter 3