First version of Matrice class