Organizing files in the directories