Update patterns.rb