My Code for LogisticRegression