Implemented the functions makeCacheMatrix and catchSolve.