modified expressionTree.add() so that it would add variables and variable accessors