Second possible solution based on nodes with grandchildren