Creating a Matrix inside a room boundary

Hi all, i am trying to create a matrix of cells with determined dimension within a room boundary any advice on how to achieve this, I tried to use nodes from the space layout package but still no success

Thank you