Update project2.c

the newest version by me