custom class working