lab3. a_matr solved! fixed