Modified makeCacheMatix and cacheSolve functions with the base code