#389 solution.