Updated makeCacheMatrix() to create object