updated logistic regression example