[code snippet] object deep copy

object deep copy