SMS: Theory of matrices