Changing bag to a map<string, Item>