commit

made a function for inventory