Added bernoulli distribution