request for member ' ' in ' ', which is of non-class type

Hi! I really need help just because i really don’t know nothing!

I received this sketch to control a thermocouple k-type with arduino uno board.
I have a MAX6675.

But it doesn’t work.

request for member ‘readCelsius’ in ‘thermocouple’, which is of non-class type 'MAX6675(int8_t, int8_t, int8_t) {aka MAX6675(signed char, signed char, signed char)}'

this is the sketch:

#include <MAX6675.h>

int vccPin1 = 13;
int gndPin1 = 12;
int thermoCS1 = 8;
int thermoCLK1 = 7;
int thermoDO1 = 2;

int samples = 1;
int letture = 4;
int timer = 40;
float temperature[4];
float averagetemperature = 0.00;

int cnt = 1;

MAX6675 thermocouple (int8_t thermoCLK1,int8_t thermoCS1,int8_t thermoDO1);

void setup() {
Serial.begin (9600);
pinMode(vccPin1, OUTPUT); digitalWrite (vccPin1, HIGH);
pinMode (gndPin1, OUTPUT); digitalWrite (gndPin1, LOW);

Serial.print (“time,”);
Serial.print (“Ti1,”);
}

void loop() {
if (samples<5){
temperature[samples] = thermocouple.readCelsius();
samples = samples + 1;
}
else {
averagetemperature = (temperature[1] + temperature[2] + temperature[3] + temperature[4])/letture;
Serial.print (timer);
Serial.print (",");
Serial.print (averagetemperature);
Serial.print (",");

cnt = cnt + 1;
timer = timer + 40;

delay (10000);
}

}

Use code tags next time!

Change that line

MAX6675 thermocouple (int8_t thermoCLK1,int8_t thermoCS1,int8_t thermoDO1);

to

MAX6675 thermocouple (thermoCLK1,thermoCS1,thermoDO1);

and it will compile.