simple linear regression without packages