added example of message serialization/deserialization