Created class Matrix