Basic Encoder, Protocol done. Created Decoder