basic logistic regression working