Using copy in contiguous()