Added method "mean".
Made "mean" method return a float.