Update parent.cpp