Commit code for chapter 5.