Implement setContents better in the Inventory trait