start of the serial port class