Simple decoder class.