serial.cpp - renamed from main.cpp