list representation

Got the list representation working for the entire tree.