dynamically created classes now serialize and deserialize messages.