Upgraded Flatten example.