added logistic regression codes