fix sample of usage of the item factory
fix ending