working on the class methods for both inventory and actions