I'm thinking it's a bracket where it shouldn't be.

Yep, it looks like your class ends, unless that was an inner class.

Class Lamp{

//define behaviour

int brightness = 0;