some more proper Ruby in reader.rb