Reading input file implemented