Logistic regression model implemented