Calculating the means

Added the means calculation