add answer to exercise 4