Refactored code to implement IFileHandler interface
finished read file method