Update logic.rb