Mistakes corrected for homework 1