work on costCalculator