extern void object::Solution( ) { for ( int i=0 ; i<5 ; i=i+1 ) { move(20); float dir = receive("Direction"); if ( dir == nan ) break; turn(dir); } }