changed the inventory class from a list in lists to a dictionary, also adding in the actions command