Write Bernoulli and Gaussian mixture examples