Making a list and checking it twice