API: rewrite example script

Do not use global blocksets "target" and "other",
use custom names instead.