A DSL for creating virtual trees