Operator interface is created. PerformOperation function is refactored.