Add leaf factory
Merge pull request #54 from ninjadev/add-leaf-factory

Add leaf factory