added Bernoulli distribution