Added MatrixController class.