added a voting function to the beer app