flatten example