Implemented the cachemean.R example for testing