finished Exercise 1