Added trace for ancestor. Project 3