brushing up matrices a bit