Converted Solution and SolutionSet to interfaces.