implementing AsyncSerial class