fixes 5
added factories arrays into Matrices calss