serial communications error

i made a program to play different tones using variables from potenshiometers and im trying to get the variables displayed on my pc using serial but i keep geting the error: exit statis 1 ‘serial’ dose not name a type:

long randNumber;
int sensor = 0;
int sensor2 = 1;
Serial.begin(9600);
void setup() {
// put your setup code here, to run once:
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);

pinMode(10,INPUT);
pinMode(11,INPUT);
pinMode(12,INPUT);
pinMode(13,INPUT);
}

void loop() {
// put your main code here, to run repeatedly:
int sensorValue = analogRead(sensor);
int sensorValue2 = analogRead(sensor2);
digitalWrite(7,1);
digitalWrite(7,1);
digitalWrite(7,0);

digitalWrite(7,1);
digitalWrite(7,0);

delay(sensorValue2/sensorValue);
Serial.println(sensorValue2/sensorValue);
digitalWrite(8,1);
digitalWrite(8,0);

digitalWrite(8,1);
digitalWrite(8,0);

The loop() function needs a '}' at the end. The "Serial.begin(9600) ;" should be inside the setup() function.