Extended the 'Matrix' class