added flyweight pattern example from wikipedia.