Added definition of mean and variance