Changed formulas and example