add copy on write demo