Updated Exercise 3