added class for writing records retrieved to answers.txt