string drawing example for chapter 23