Addedd code for the Mean function

Signed-off-by: Frank Ventura <VenturaFranklin@gmail.com>