Add method to calculate the mean of a set of numbers