Modfied cachematrix.R with working functions makeCacheMatrix and cacheSolve.