stubbing out matrix class