Ex5.py and Ex6.py