now it just writes to matrix from code, not from a file