class working