Draft problem4.py