How to use classes (objects in Arduino if possible

Is it possible to use class in Arduino? Even simple toy problem fails..

// try to implement class in Arduino, saw Processing example in
// processing.org/learning/tutorials/objects/
// simple test fails on error, is use off Class

class test{
public: //public otherwise error: test::test private

int i; // a variable

test(){ //the constructor
i=0;
}

void addone(){ //a function
i=i+1;
}
}; // undocumented semicolon otherwise error:

void setup(){
// "test mytest;" compiles ok, next statement now error:
// conversion from 'test*' to non-scalar type 'test' requested
test mytest = new test();
}

void loop(){
}

try it without the new keyword

Mr mem,
Ok, thank you for the quick response. Compiles and all is working.
wim4you

// toy Arduino program for testing class
// Processing example in http://processing.org/learning/tutorials/objects/

class test{
public: //public otherwise error: test::test private
int i; // a variable

test(){ //the constructor
i=0;
}

void addone(){ //a function
i=i+1;
}
}; // undocumented semicolon otherwise error:

// no new today .. thanks to mr mem from arduino forum
test atest1 = test();
test atest2 = test();

//rest is some testing to PC
void setup(){
Serial.begin(9600);
}

void loop(){

//small test seems to work allright
Serial.print("atest1.i : ");
atest1.addone();
Serial.println(atest1.i);

// does it work with 2 variables: yes
Serial.print("atest2.i : ");
atest2.addone();
atest2.addone();
// can you assign and read: yes
if (atest2.i >= 20) {atest2.i=1;}
Serial.println(atest2.i);

Serial.println();
delay(500);
}