added Message and Serializer classes