First two lines in output file now give 'a' and 'b'