Finished Exercise of week 3, Logistic Regression