changig OperationType from enum to class using visitor.
Solution generation is now ok.