homework2: file renaming