What's the correct way to use the class method from Inventory?

You got it!

bag.increase(5); is the correct way to call the class method.