Rough program flow

Scratched the general program flow (more like pseudocode).