Added flatten example
Added flatten example