add example and better logistic regress