Add an example from the assignment: implements a vector wrapper that
caches the mean.