as hari listened , beating time with one hand where it rested on the chair arm , he worked over in his mind the roles that would be played by the chen and divart families as trantor continued its decline .