added corrected homework 2