Code for the chapter, initial commit