[MATRIX]

Fix bug, add method, and add example directory