implemented dynamic gamma-poisson model