Segment 1

Segment 2

Segment 3

Tree Rotation