update gemfile
refactor output to use attr_reader