new file:   ex6.py