I don\'t have a great understanding of the Iterator class and I\'m struggling to make this bit of code work after reading up on it. It seems to be going infinite which I\'m