Initial import of Chapter 1 code