printSet() method now is printCollection().