Wrote doubleTree