problem 10 done