door lock with keypad 4x4 matrix-relay-solenoid door lock-arduino uno

hello i m new arduino user i m trying to make a door lock project with keypad.i use this code and i have this error message---> 'Keypad' was not declared in this scope can someone help me ?

#include <Keypad.h>
char* password = "123"; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};

byte rowPins[ROWS] = { 9, 8, 7, 6 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int Lock = 13;

void setup()
{

pinMode(Lock, OUTPUT);
LockedPosition(true);
}

void loop()
{
char key = keypad.getKey();
if (key == '*' || key == '#')
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(Lock, LOW);
}
else
{
digitalWrite(Lock, HIGH);
}
}

I moved your post here, because it didn't belong in a section labelled "For problems with Arduino itself, NOT your project".

You probably don't want to reinstate your signature either; I moved that too - to the bin.

i have this error message

Is that all of your error message?

Please remember to use code tags when posting code.

Do you have the Keypad library installed properly?