//Same as in Example 1 but roverbot must restart 3 sec after stop. 
//It will then make a left turn 90 degrees after waking up and continue forward for 2 sec. 
//Finally, it will make a right turn 90 degrees before stopping.

task main()
{
   OnFwd(OUT_A+OUT_C);
   Wait (500);
   OnRev(OUT_A+OUT_C);
   Wait(400);
   Off(OUT_A+OUT_C);
   Wait(300);
   OnRev(OUT_A); OnFwd(OUT_C);Wait (100);    //might have to change the wait time in order to execute 90 degree turns
   OnFwd(OUT_A+OUT_C); Wait (200);
   OnFwd(OUT_A); OnRev(OUT_C); Wait (100);
   Off(OUT_A+OUT_C);
 }  

    Source: geocities.com/fuhan75