passing Stream object to constructor to enable flexible Serial port configurations