Homework5 corrected