Add (de)serialization example.