Overlapped boxes in Grasshopper

How to create overlapped boxes in Grasshopper in a way that we can control how much it is getting overlapped and how many boxes we can add to be overlapped

Maybe just draw a picture or model it in rhino or something. Else it’s going to be a lot of “no that’s not what I meant…”.