Implement in Coursera's ML way.
Regularize cost function.