First attempt to make the assingment2. I have copied the examples given and modify them to use matrix and to calculate the inverse matrix