Code for Linear Regression Assignment 6