Exercise 6. Corrected