examples: tiny refactoring