for a class