refactor examples code
strongly connected components done