Finished the code base for chapter 1