Programming assignment 2 for peer review - with the caching issue