added bernoulli example