Creating macro to declare component