flesh out pseudocode