compact code examples