Avoid reflection in example program