Generate class method by default