Working Logistic regression program