Trees: structure and function