Add file handling and test
Add loop for creating the list