Working on refactoring copy and paste
Merge pull request #104 from Hyiero/mean

Working on refactoring copy and paste