completato refactoring sample_wines
finished first refactoring, there are still some bugs