cachematix.R project assigment 2