Homework5 corrected 2.0