Source code for chapter 01