added a needed function to the Item Class