corrected exercise 4