modified:   fig8.py