added answer to exercise 2.8