Added listings for chapter 3