Client code for TreeNotes