add Serializer to make Serializing be more convenient.