Reorganizing files and studying sort and input