renamed input output file , task3
renamed ...
modified for testing