ex1 linear regression with one variable