Making structure of files