defining variables and formulas