adding ttyin/output example.