Problems involving matrix