Working on Matrix class