3d cube implemented