Working with two input files