bfreeman update ex5.py extra