problem 5 done.