adding ex04.py