serialization example added