work on issue #4: move implements and callgraph to the top