def __getitem__(self, key):
        if key == 0:
            return self.x
        elif key == 1:
            return self.y