Clean up example
Set templates
use right var.
Fix var. passing