modified problem.py