methode 2 to make the M1 matrix, seems correct to me