Assignment 2 for R programming course

This is my assignment 2 writing cache functions.