revised pseudo-code.c