Homework: matrix