Add code to the skeleton functions in the file
The code is based on the Caching the Mean of a Vector example