Working on problem3.py