tentatively use UITextInput protocol methods on UITextField
added a text view example for chapter 23