logistic regression OO