demo and src folders; factory for single method tree build
demo and src folders; factory for single method tree build
use factory in demo