added feature to print family tree