Use extend for deep copy of objects