class program { define usando_while_complejo() { while( notNextToABeeper && frontIsClear ) { move(); } } define usando_while_sencillo() { while( frontIsClear ) { if( nextToABeeper ) { turnoff(); } move(); } } program() { usando_while_sencillo(); turnoff(); } }