Light switch combination lock

[QUICKTIME http://www.cameroncundiff.com/media/switchy.mov 320 257]

// declare variables:
int switchPin01 = 7; //xlarge photocell
int switchPin02 = 2; //large photocell
int switchPin03 = 5; //small photocell
int greenLedPin = 3; // digital output pin for an LED
int redLedPin = 4; // digital output pin for an LED
int switchState01 = 0; // the state of the xlarge switch
int switchState02 = 0; // the state of the large switch
int switchState03 = 0; //small switch

void setup() {
pinMode(switchPin01, INPUT);
pinMode(switchPin02, INPUT); // set the switch pin to be an input
pinMode(switchPin03, INPUT);
pinMode(greenLedPin, OUTPUT); // set the yellow LED pin to be an output
pinMode(redLedPin, OUTPUT);// set the red LED pin to be an output
}

void loop() {
// read the switch input:
switchState01 = digitalRead(switchPin01);
switchState02 = digitalRead(switchPin02);
switchState03 = digitalRead(switchPin03);

//enough light = 1, dark = 0 - then green
if (switchState01 == 1 && switchState02 == 0 && switchState03 == 1) {
// if the switch is closed:
digitalWrite(greenLedPin, HIGH); // turn on the yellow LED
digitalWrite(redLedPin, LOW); // turn off the red LED
}
else {
// if the switch is open:
digitalWrite(greenLedPin, LOW); // turn off the yellow LED
digitalWrite(redLedPin, HIGH); // turn on the red LED
}
}