class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y
        self.next = None
    
    def append(self, point):
        self.next = point

a = Point(2, 3)
b = Point(5, 7)
a.append(b)
print b.x
print a.next.x

b.x = 6
print b.x
print a.next.x
