subclassing pint was madness