derive Class from a namedtuple