corrected exercise 1