   isMoveBackward = command[1] == '1';
   isMoveLeft = command[2] == '1';
   isMoveRight = command[3] == '1';
+  isLedBlink = command[4] == '1';
+
+  int speed = command[5] - '0';
+  if (speed > MIN_SPEED && speed < MAX_SPEED)
+      movingSpeed = speed;
   
   comply();
 }
 
 void moveForward() {
-//  analogWrite(MOTOR_PIN, 200);
-  digitalWrite(MOTOR_PIN, HIGH);
+  if (movingSpeed == 1)
+    analogWrite(MOTOR_PIN, 200);
+  else if (movingSpeed == 2)
+    analogWrite(MOTOR_PIN, 225);
+  else
+    digitalWrite(MOTOR_PIN, HIGH);
 }
 
 void stopMoving() {

#include <Servo.h>

const int MOTOR_PIN = 3;
const int SERVO_PIN = 9;

boolean isMoveForward = 0;
boolean isMoveBackward = 0;
boolean isMoveLeft = 0;
boolean isMoveRight = 0;

Servo servo;


}

void left() {
  servo.write(140);
};
void center() {
  servo.write(90);
};
void right() {
  servo.write(40);
};

void clearCommand() {
  for (int i = 0; i < MAX_COMMAND_LENGTH; i++) {
    command[i] = '0';
  }
}

void blinkLed() { 
  analogWrite(LED_PIN, 10);
  delay(50);
  digitalWrite(LED_PIN, LOW);
}

