object modification to store state locally in ITEM and SHOP object for the desired requests impying reduced global variables