example updated and moved to examples/require