Update chapter3_exercises.py