file changing for homework2