add class for serialization and deserialization key