matrix in a nutshell