BinaryExpression qualified;
if (exp instanceof Addition)
qualified = new Addition();
else if (exp instanceof Division)
qualified = new Division();
else if (exp instanceof Multiplication)
qualified = new Multiplication();
else if (exp instanceof Subtraction)
qualified = new Subtraction();
else if (exp instanceof EqualsTo)