Finding mean and standard deviation