Create immediateancestor.cpp