Code bits from the "Ruby The Programming Language" book