Add Flyweight pattern implementation