Make solutions instances of Problem class