add ex6 and ex7 files.
add ex8.py