extend linear regression example