break part1.c into two parts: part1.c is now ready to submit. The rest of the code is in draft.c