pseudocode structure and flow