add tree2 from netbeans project, should always use ide to save time