Added update(int, ItemType) method to the adapter.