added example/parent.cpp