adding answer to Exercise 1