defining the files and learning everything