Solve problem 13