add oop sample 'Inheritance' macro expand code for read