Fixes #111 - make one of the flyweight samples DRY