Outputing in the 3d cube. Done