Coding the Matrix Assignments