implemented FileReader singleton for processing file