added logistic regression.