Added problem 12 solution.