make class working