first draft of linreg2 app