Correcting Exercise 4