pseudocode part 1