hdt: Using Macro to create objects