started tree creation code
Added list creation code