Updated var estimatedCost to var cost