modified files for chapter 3