Problem 6 completed