Added Parser class for formulas