Chapter 06 example code