add deleteItem method to itemList struct