started refactoring regressions, linear regression reshape