Worked on Exercise 2