implement basic calculator operator