Flyweight pattern example