I need help on implementing a inventory system for my game

here is the hierarchy of objects