r9175: simplify the example code a bit