-matrix class now with simple functionality