skeleton for logistic regression