Problem 6 - solved