Exercise 2 - logistic regression and regularization.