cvg code examples