Week 4, refactoring and fix for rating beers