added function to list all states from the file.