add class MacroController and Macro