Solve problem #13