Further work on matrix lab