tipcalculator for ios class