class program {

define walk()
   {
      if(nextToABeeper)
         {
            pickbeeper();
            walk();
            while(frontIsBlocked)
               turnleft();
            move();
         }
   }

define accelerate()
   {            
      while(nextToABeeper)
         {
            while(anyBeepersInBeeperBag)
               putbeeper();
            walk();
         }
   }

program()
{
    accelerate();
    turnoff();
}

}
