refactor beers.coffee