use inventory() in example