Wrote the mean function.
Wrote the mean function