this should be define_attribute_method