problem 6 done