updated pseudo-code.py