task9 corrected solution