Chapter 16 initial code.