Added listings for chapter 2