This is the answer to Exercise 2