replace class_inheritable_accessor with class_attribute