serialport class