Modified Exercise 3