Evaluating an expression with multiple variables