first working version of the math compiler