added command line argument to take the input file