Let's Make Robots!

Trouble getting Redbot to turn using encoders

I am trying to turn a redbot precisely (relative) 90° using the encoders but I cannot figure out how to do this using the encoder tutorial. Any thoughts on how to do this?

I think i am getting lost in the serial side of things. Pretty much i want the robot to drive straight turn 90° drive the same disrance back and end up back at the start.