problem 7 done.