assignment 2 started reading input file