added ex24.py