pseudocode for functions.

pseudocode for functions.