Put the sender and decoder classes definition within the macro