Add the Solution.Write() method to print solutions.