Logistic regression example for Regression class