completed solution to the logistic regression assignment