Update writer.rb