add get inventory to factory class