Logistic regression part of week 4.