Wrote first version of formula compiler