demonstrates logistic regression