add nand.c file