Inventory Class

-Added compatibility for inventory