began implementing the matrix