99 bottles of beer, refactored