added new v2_inventory class

added new class to replace v1