invalid use of 'class CapacitiveSensor'

Hi, I am geting this error, could somebody help me understand problem!

sketch_oct16a.ino: In function ‘void loop()’:
sketch_oct16a:33: error: invalid use of ‘class CapacitiveSensor’
sketch_oct16a:36: error: invalid use of ‘class CapacitiveSensor’
sketch_oct16a:37: error: invalid use of ‘class CapacitiveSensor’
sketch_oct16a:38: error: invalid use of ‘class CapacitiveSensor’

code:

#include <CapacitiveSensor.h>





CapacitiveSensor   cs_2_4 = CapacitiveSensor(2,4);         // 1 megohm resistor between pins 4 & 2, pin 2 is  distance sensor pin, add Bare Paint
CapacitiveSensor   cs_5_6 = CapacitiveSensor(5,6);         // 1 megohm resistor between pins 6 & 5, pin 5 is sensor pin, add Bare Paint
CapacitiveSensor   cs_8_9 = CapacitiveSensor(8,9);         // 1 megohm resistor between pins 9 & 8, pin 8 is sensor pin, add Bare Paint
CapacitiveSensor   cs_10_11 = CapacitiveSensor(10,11);     // 1 megohm resistor between pins 11 & 10, pin 10 is sensor pin, add Bare Paint
const int ledPin = 12;
const int ledPin2 = 13;

int duration;


void setup()                
{
   cs_2_4.set_CS_AutocaL_Millis(0xFFFFFFFF);     // turn off autocalibrate on channel 1 - just as an example  
      cs_5_6.set_CS_AutocaL_Millis(0xFFFFFFFF);
   cs_8_9.set_CS_AutocaL_Millis(0xFFFFFFFF);
   cs_10_11.set_CS_AutocaL_Millis(0xFFFFFFFF);
   Serial.begin(9600);
       pinMode(13, OUTPUT);
    pinMode(12, OUTPUT);
}

void loop()                   

{   

long start = millis();   
long total1 =  cs_2_4.CapacitiveSensor(30);  
long total2 = total1 - 100;  //callibration for pad...

long totalA =  cs_5_6.CapacitiveSensor(30);
long totalB =  cs_8_9.CapacitiveSensor(30);
long totalC =  cs_10_11.CapacitiveSensor(30);

Serial.println(total2);                                  


{
if (total2 < 150){        //Start generating different tones for different distances. This will need callibrating by altering the value of total2
   noTone(7);
}
  if  (total2 > 150 and total2 < 200){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,131,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}

   if  (total2 > 250 and total2 < 300){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,147,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}
   if  (total2 > 350 and total2 < 400){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,165,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}
   if  (total2 > 400 and total2 < 450){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,175,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}
   if  (total2 > 450 and total2 < 500){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,196,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}
   if  (total2 > 500 and total2 < 550){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,220,5000);
delay(duration);
noTone(7);
delay(duration);
}
   if  (total2 > 550 and total2 < 600){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,247,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);
}
   if  (total2 > 600 ){
   //turn LED on
      digitalWrite(ledPin2, HIGH);
tone(7,262,5000);
delay(duration);
noTone(7);
digitalWrite(ledPin2, LOW);
delay(duration);

}

}

if (totalA > 800){              //if input one is pressed change duration between tones
   //turn LED on
   digitalWrite(ledPin2, HIGH);
   duration = 500;
   Serial.println("500 delay");
} 
if  (totalB > 800){             //if input two is pressed change duration between tones
   //turn LED on
   digitalWrite(ledPin2, HIGH);
   duration = 100;
   Serial.println("100 delay");
  
}
if  (totalC > 800){             //if input three is pressed change duration between tones
   //turn LED on
   digitalWrite(ledPin2, HIGH);
   duration = 25;
   Serial.println("25 delay");
  
}

  else {
   //turn LED off
   digitalWrite(ledPin2, LOW);
}

                                        // arbitrary delay to limit data to serial port
}

char getcap(char pin)
{
char i = 0;
DDRB &= ~pin;          // input
PORTB |= pin;          // pullup on
for(i = 0; i < 16; i++)
   if( (PINB & pin) ) break;
PORTB &= ~pin;         // low level
DDRB |= pin;           // discharge
return i;
}

The code goes BETWEEN the [code] tag and the [/code] tag, not between sets of code tags.

Modify your post to do it right.

Edit: The method name has a lower case c, not an upper case C.

Thanks a lot! :)