make drawing code in this example more general
make last chapter 23 example tappable as in previous editions