Add method to evaluate an expression