write sche.c