Update homework8.py