Assignment 2: Logistic regression