Created an Operator enum to factor out calculations