multi classification using logistic regression