Source code for chapter 03

Source code for chapter 03