finished tree example, need to integrate into idv now.