[examples] Improve how arguments are used