SerializeModel class