Updated and finalized test2.c