class Integer(object): @staticmethod def parseInt_1(value): return int(value) def __init__(self, value): self._value = value def equals_1(self, other): # TODO: test this properly return isinstance(other, Integer) and other._value == self._value def __str__(self): return str(self._value) def __repr__(self): return str(self)