Assignment 2: Cached mean