implementing inventory