Refactoring
Refactoring poisson sampler