add class method case