extend template example slightly