Change in code to follow the required elements. Changed items data in JSON file to be arrays instead of objects, updated addItem and useItem methods with new change.