add propably needed matrix class and directory