transformed TipResultCalculator to a module