problem 3 done on hw4