a second (not yet final) iteration of example02.cc