Creating matrix class assignment