caso 8. refactoring