adding chapter 3 exercise