attr_accessor 'element' definition