add methods to compute value of Term and Expression