hw3_4 corrected