fixed errors in second homework so lame