ad TODO class/struct Matrix