Kosaraju Programming Problem 4