Added MessageDecoder class to implement