finishes implementation of macros and shared examples