Hw4 problem 1 done.