update cs220/p2.c