Extends flattening example