Adding eval() method to compute some of the calculations.