finished subtree tutorial portion