First working version of TipCalc