Ultrasonic 2 Wheel Drive Robot Issues

I have a ARDUINO Ulatrsonic 2 Wheel Drive Robot but the same error seems to come up in every piece of code i get off the internet.

This error is as follows:
AF_DCMotor' does not name a type

The code i am using is:
AF_DCMotor Motor1(1);
AF_DCMotor Motor2(3);

void setup()
{
}

void loop()
{
Motor1.setSpeed(255);
Motor2.setSpeed(255);
Motor1.run(FORWARD);
Motor2.run(FORWARD);
delay(1000);
Motor1.run(BACKWARD);
Motor2.run(BACKWARD);
delay(1000);
Motor1.run(FORWARD);
Motor2.run(BACKWARD);
delay(1000);
Motor1.run(BACKWARD);
Motor2.run(FORWARD);
delay(1000);
Motor1.setSpeed(0);
Motor2.setSpeed(0);
Motor1.run(BRAKE);
Motor2.run(BRAKE);
delay(1000);
}

If anyone can be of use to assist me that would be extremely helpful and apprecialed

Thankyou

Chances are that You did not install the AF_DCMotor class/library (obsolete) nor #include it in the code

And You definitely did not read how to post here.

Please correct your post