finished lab6pseudocode.