ex1-2 computeCost done