Update flyweight.cpp