added a do binary op method to check for correct operands