Update phase3.py