My own logistic regression