add class method generation.