writing pseudoce code