First bit of code using GLS for linear fitting.