Implemented the second encoder and changed public_messages.c