refactoring, mostrato al prof