I went through the code and I feel it is ok. I even added a check to ensure no duplicates are added to the list (lines 45-49). Please ignore line 37. Yet nothing is printed.