code with beer is not working. Making foolish mistakes