BTW I added my definition of matrix in this context to her CS