refactoring sFile class step 2