adding chapter 9 exercise