public class StoneMasonKarel extends SuperKarel {
public int count=0;
public void run(){
countNoOfSteps();
moveNumberOfSteps();
}
public void countNoOfSteps(){
while(frontIsClear()){
move();
count++;
}
turnAround();
}
public void moveNumberOfSteps(){
for (int i=0;i= count;i++){
move();
putBeeper();
}
}
}
}