logistic regression homework minus extra files