Add serial.c sample code