finished writeup about control flow