Create serial.cpp

serial code