add coord3 class and XDCube class