working on ex22.py, not done yet.