first draft from trees
Functional trees part one.