Changed XYZ.h to use separate x, y, and z arrays