Initial code for Chapter 1.