some updates to problem 3
before major revisions to the graph structures of part 4