fix example code

node.x and node.y (no getX()/getY() method in code)