revise the insertChild method in lab10