adding Logistic Regression Code