Create serial_lib.cpp