computeCost function seems useless