Corrected Exercise 3