Add attr_reader and to_s method