add header of attribute definition and sample code pieces