I am trying to achieve something similar to what has been shown in the following diagram (sorry for the bad drawing):
Basically, every box denotes an object, and all of