Implemented hierachy and linked list for items