Simple Useless Box Code ButtonPin not decleared

I am new to Arduino and building a Useless Box I got the code off the net and typed it in, I am getting an error ButtonPin not declared. can someone please help?

Thanks

#include <Servo.h>

const int button = 2;
int buttonState = 0;

Servo myservo;

int pos;
long timedelay;

void setup()
{
  pinMode(buttonPin, INPUT);
  myservo.attach(9);
  }

void loop()
{
  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH) {
    for(pos = myservo.read(); pos >=20; pos -= 1) {
      myservo.write(pos);
      timedelay = random(15, 30);
      delay(15);
    }
  }
  esle{
    timedelay = random(1, 4);
    for(pos = myservo.read(); pos <=90; pos += timedelay) {
      myservo.write(pos);
    }
  }
}

‘buttonPin’ not the sam as ‘button’

const byte buttonPin = 2;

Then there's the problem of "esle"

    timedelay = random(1, 4);
    for(pos = myservo.read(); pos <=90; pos += timedelay) {
      myservo.write(pos);
    }

Are you sure you copied the code correctly?

Awol

I got the code from here as I can code in C# this is all new and exciting to me.

http://aux.coe.utsa.edu/~pab/robotics/f16/WeyandtMatthew_UselessMachine.pdf

Delta

exactly many typo's it compiled first post and looked like an idoit.