Matrices code from Database Course