add getX and getY methods