mixture of gaussians example working