Chapter 7 Code Examples