Solution to Exercise for Linear Regression on Coursera