6 practical examples on how to use macros