adding the file reader class and parsing logic