first round of classification using logistic regression