Adding copy constructors to the classes implementing solutions