- cleaner average calculation: divided concerns of two functions