Define msg_decoder class