#2 Attempt - 1st function - fix and add inverse matrix with solve function