Composition of 3d cubes n3