In class Matrix was realized method write