importing nnCostFunction