Flyweight pattern exercise