Tree builder 1.0