added serialization class