edit AddClass add applyMethods method