first implementation using class SoftwareSerial