updated flyweight sample