Finished "applyOperator" helper method