use the attr_reader `artist` instead of the instance variable