XY class added