Implemented the copy part.