Implementing the ItemManager class