basic tsort outline