Refactoring examples into fragments