CS220/P2/p2.c