working example, made attr_accessors attr_readers