Finished class methods for poisson. Coding Logistic Regression