answer to exercise 6