updated logistic regression sample program