class program { define turnright() { iterate(3) turnleft(); } define halfturn() { turnleft(); turnleft(); } define colocaLinea() { putbeeper(); while( frontIsClear ) { move(); putbeeper(); } halfturn(); while( nextToABeeper ) move(); } program() { if( anyBeepersInBeeperBag ) { halfturn(); colocaLinea(); while( anyBeepersInBeeperBag ) { turnright(); move(); turnright(); colocaLinea(); } } turnoff(); } }