Examples from the book Eloquenty Ruby