Added ex6.py, ex7.py, ex8.py and ex9.py