def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def setTail(self, pt):
        self.pt = pt
        self.Tail.Eq(pt)
        self.Head.setPoint(self.pt.x + self.x, self.pt.y + self.y)