finished implementing inventory command