ex25.py - even more practice