in this situationwe can take three steps to restore red-black correctness and thereby balance the tree here are the steps switch the color of ' grandparent ( in this example switch the color of ' parent ( rotate with ' grandparent ( at the topin the direction that raises ( this is right rotation in the example as you've learnedto switch colorsput the arrow on the node and press the / button to rotate rightput the arrow on the top node and press ror when you've completed the three stepsthe workshop applet will inform you that the tree is red/black correct it' also more balanced than it wasas shown in figure in this examplex was an outside grandchild and left child there' symmetrical situation when the is an outside grandchild but right child try this by creating the tree (with color flips when necessaryfix it by changing the colors of and and rotating left with at the top again the tree is balanced possibility is red and is inside if is red and is an inside grandchildwe need two rotations and some color changes to see this one in actionuse the workshop applet to create the tree (again you'll need color flip before you insert the the result is shown in figure