First set of edits to cachematrix.R