Wrote the next two formulas for functions