First version of our matrix stuff