created ch2.c