#18 updating serial port class