homework2 corrected