added answer to exercise 2 chapter 2