Added the inventory fragment with a basic inventory function