add linear regression example and use code of it in test