tree list initial code - add function only