dump for assignment 2 - logistic regression