Assignment2 caching