implemented macro1

Signed-off-by: Mauro Scomparin <scompo@gmail.com>