Completed hw7 excersizes 1 and 2