basic logistic regression
most of the code for part 2 written