Create serial.c

serial code of the project