add class Matrix & constructor