Added serialization and deserialization example.