exercise 6 corrected