Implement URL generation function and update example to use it.
use TABS!