Update assignment2.py