Code reuse with functions and macros
