Create chapter 7, 5 ex.py