added discrete bernoulli stuff