Update add_top_ancestorclass.php