Updating exercise7.py