Grouping the files into chapters.