homework3: renaming input files