Rewrite custom formats example as dynamic example