added logistic regression prototype