refine code examples