modifed project1.py