Import ex8 of week 9.
Unslove cofiCostFunc.