added exercise linear leastsquares fit