Adding chapter 3 exercise