Adding LinearRegression function