My buddy Braydee over at Gamedev Artisan recently released a tutorial on inventories that you might find helpful.