added numbers to Matrix generation