Corrected homework 1