extended the callgraph class with a method for swapping statements