ftsp: first changes for linear regression, not compiling