final example for chapter 37