Problem 6 done