now compiles. next steps, import a graph structure/package arrival rules, make an update algorithm