Composition of 3d cubes with arrows