Problem 6 solution found