confused about coding for the matrix.