Added original source code for Chapter 2