serial input example works