def toName(e: Employee) = e.name val treeOfNames = t.map(toName)