fixed matching routine in example02.cc