support class and attributes.