worked on logistic, poisson, and plotting