Make a base class for all decoders.