Create costCurveScript