matrix := [ [2,0,0,0,0,0,0,0], [0,0,3,0,0,0,0,0], [0,3,0,0,0,0,0,0], [0,0,0,0,3,0,0,0], [0,0,0,3,0,0,0,0], [0,0,0,0,0,0,0,3], [0,4,4,3,3,2,2,2], [0,0,0,0,0,3,0,0] ]*Z(5);