Use attr_reader and register_formatter