refactoring_code1