-Refactoring file operation class