implemented inventory