I am storing position of item in item itself and want position to be updated as new items are added or some items are removed. Here is my code for items
class