New Method : getTotalCost()