Added changes for chapter 3.