Added sample code for copy