ex24.py - even more practice