finished the logicalOperators